00ae2a6ac0012ba72be1f4ad066663eaa9a9985d,src/main/java/au/com/agic/apptesting/steps/ZAPStepDefinitions.java,ZAPStepDefinitions,startSession,#,165

Before Change


	@When("I create an empty ZAP session")
	public void startSession() throws ClientApiException {
		final ClientApi clientApi = getClientApi();
		final String url = Optional.ofNullable(State.getFeatureStateForThread().getUrlDetails())
			.map(UrlMapping::getDefaultUrl)
			.orElse(null);

		checkState(url != null, "You have not supplied a URL");

After Change


	@When("I create an empty ZAP session")
	public void startSession() throws ClientApiException {
		final ClientApi clientApi = getClientApi();
		final String url = State.getFeatureStateForThread().getUrlDetails()
			.map(UrlMapping::getDefaultUrl)
			.orElse(null);

		checkState(url != null, "You have not supplied a URL");